package org.beetl.json;

import java.io.IOException;
import java.util.List;
import java.util.TreeSet;

import org.beetl.json.action.IValueAction;
import org.beetl.json.loc.IndexLocation;
import org.beetl.json.loc.IndexLocations;

public class OutputNode  {

	protected String inHeritedPolicy = JsonTool.EMPTY_POLICY;
	protected  TreeSet<IValueAction>  valueActions =  new TreeSet(new ActionComparator<IValueAction>());
	protected boolean ignore = false ;
	protected IndexLocations indexLocation = null;
	public void render(Object obj, JsonWriter w) throws IOException {
		return ;

	}

	public void setActionByLocation(List<Location> list) {
		// TODO Auto-generated method stub

	}

	public String getInHeritedPolicy() {
		return inHeritedPolicy;
	}

	public void setInHeritedPolicy(String inHeritedPolicy) {
		this.inHeritedPolicy = inHeritedPolicy;
	}

	public boolean isIgnore() {
		return ignore;
	}

	public void setIgnore(boolean ignore) {
		this.ignore = ignore;
	}

	public IndexLocations getIndexLocation() {
		return indexLocation;
	}

	public void setIndexLocation(IndexLocations indexLocation) {
		this.indexLocation = indexLocation;
	}

	public void addInheritedPolicy(String policy){
		if(this.inHeritedPolicy==JsonTool.EMPTY_POLICY){
			this.inHeritedPolicy = policy;
		}else{
			this.inHeritedPolicy = this.inHeritedPolicy+","+policy;
		}
	}

	

}
